<?php
namespace app\facade;
use think\Facade;
class ModelFactory extends Facade
{
    private static $ModelName;
    public function __construct($ModelName)
    {
        self::$ModelName = $ModelName;
    }

    protected static function getFacadeClass()
    {
        $ModelName ='app\common\model\\'.self::$ModelName;
        return $ModelName;
    }
}